package com.anda.jsu.yangsp.core.service;

import java.io.Serializable;
import java.util.List;

import com.anda.jsu.yangsp.core.view.util.PageModel;

/**
 * 
 * @author xiaolu
 * @since 2012-12-06
 *
 */
public interface IBasicService<T> {
	
	public void save(T t);
	
	public void saveOrUpdate(T t);
	
	public void update(T t);
	
	public T findById(Serializable entityId);
	
	public void delete(T t);
	
	public void deleteAll(List<T> entities);
	
	public List<T> list(PageModel<T> view);

}
